<?php
/*========================================= JooSam =========================================/
/																							/
/	Extention:		JooSam																	/
/	Created by:		ScriptPlanet.eu															/
/	Site:			http://www.scriptplanet.eu												/
/	Email:			support@scriptplanet.eu													/
/	Support:		http://www.scriptplanet.eu/support										/
/	Copyright:		2011 (c) ScriptPlanet.eu												/
/	License:		CC BY-NC-ND 3.0 ~ http://creativecommons.org/licenses/by-nc-nd/3.0/		/
/	File Version:	0001																	/
/																							/
/========================================== JooSam ========================================*/
// Joomla security
defined('_JEXEC') or die;

## Import Joomla Data
JHtml::_('behavior.tooltip');
?>



<!-- comment/delete line below to hide mcrypt warning -->
<?php if ($this->jswarn != ''){echo $this->jswarn;} ?>
<!-- comment/delete line above to hide mcrypt warning -->

<!-- Don't edit anything below here -->
<form action="<?php echo JRoute::_('index.php?option=com_joosam&view=settings'); ?>" method="post" name="adminForm" id="adminForm">
	<fieldset class="jsamLegend">
		
		<legend><?php echo JText::_('COM_JOOSAM_VIEW_SETTINGS_SETTINGS_TITLE'); ?></legend>
		
		<p><?php echo JText::_('COM_JOOSAM_VIEW_SETTINGS_SETTINGS_INTRO'); ?></p>
	</fieldset>
	<table class="adminlist" style="border:1px solid #ccc; width:700px; margin-left:auto; margin-right:auto; border-radius:7px; overflow:hidden;">
		<thead><?php echo $this->loadTemplate('head');?></thead>
		<tbody>
			<tr style="margin:0;padding:0;">
				<td style="margin:0;padding:0;"><?php echo $this->loadTemplate('sql');?></td>
				<td style="margin:0;padding:0;"><?php echo $this->loadTemplate('img');?></td>
				<td style="margin:0;padding:0;"><?php echo $this->loadTemplate('sam');?></td>
			</tr>
		</tbody>
		<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
	</table>
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="2" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form><br/>
<div class="clr"></div>
<!-- If you have respect for scriptplanet.eu you don't delete the code below -->
<div class="spCopyFooter" style="padding:0;margin:0 auto;font-size:9px;width:220px;text-align:center;"><span>JooSam created by</span><a href="http://www.scriptplanet.eu">ScriptPlanet.eu</a><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/"><img alt="Creative Commons Licentie" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-nd/3.0/80x15.png" /></a></div>

<script>
	Joomla.submitbutton = function(task){
		if (task == 'setting.edit'){
			if (document.adminForm.boxchecked.value==2){
				alert("<?php echo JText::_('COM_JOOSAM_UNLOCK_NEED'); ?>"); return false;
			}
			else{
				document.adminForm.boxchecked.value==1;
				Joomla.submitform(task, document.getElementById('adminForm'));
			}
		}
		else{
			Joomla.submitform(task, document.getElementById('adminForm'));
		}
	}
	function hidejswarn(){document.getElementById('jswarn').style.display = 'none';}
</script>